package com.zzyl.nursing.service.impl;

import com.zzyl.nursing.domain.NursingProject;
import com.zzyl.nursing.dto.NursingProjectPageDto;
import com.zzyl.nursing.mapper.MemberProjectControllerMapper;
import com.zzyl.nursing.service.MemberProjectControllerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberProjectControllerServiceImpl implements MemberProjectControllerService {

    @Autowired
    private MemberProjectControllerMapper memberProjectControllerMapper;

    @Override
    public List<NursingProject> getProjectList(NursingProjectPageDto nursingProjectPageDto) {
        List<NursingProject>  list = memberProjectControllerMapper.selectProjectList(nursingProjectPageDto);
        return list;
    }

    @Override
    public NursingProject selectProjectById(Integer id) {
        NursingProject  nursingProject = memberProjectControllerMapper.selectProjectById(id);
        return nursingProject;
    }
}
